package 类和对象课堂练习.封装;

public class Zuoye032922 extends Zuoye03292{
    String lahuo;
    public Zuoye032922(String name, String clor, String chepai,String lahuo) {
        super(name, clor, chepai);
        this.lahuo=lahuo;
    }
    public void print(){
        System.out.println("这是一辆"+name+"车");
        super.print();
    }
    public void lahuo(){
        System.out.println(name+"车可以用来"+lahuo);
    }
}
